package com.edu.d1_set;

public class SetDemo2 {
    /**
     * 学会获取对象的哈希值，并确认一下
     * JDK根据对象地址，通过某中规则计算出返回值
     */
    public static void main(String[] args) {
        String name="刘亚伟大傻逼";
        System.out.println(name.hashCode());
        System.out.println(name.hashCode());
        System.out.println(name.hashCode());
        String name1="黑马程序员";
        System.out.println(name1.hashCode());
        System.out.println(name1.hashCode());
        System.out.println(name1.hashCode());
    }
}
